
import 'package:flutter/material.dart';
class WeatherProvoder extends ChangeNotifier {
  //  温度
  int temperature = 5;
  // 温度单位: 摄氏度/华氏度
  String temperatureUnit = '摄氏度';

  int get temperatureVal => temperature;
  String get temperatureUnitVal => temperatureUnit;

  set temperatureVal(int value) {
    temperature = value;
    notifyListeners();
  }

  set temperatureUnitVal(String value) {
    temperatureUnit = value;
    notifyListeners();
  }

}